package com.busionline.wotu.woochenandroid.api;

import com.busionline.wotu.woochenandroid.bean.ArticleBean;
import com.busionline.wotu.woochenandroid.bean.BannerBean;
import com.busionline.wotu.woochenandroid.bean.BaseBean;
import com.busionline.wotu.woochenandroid.bean.PageListDataBean;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;

/**
 * Created by admin on 2018/5/15.
 */

public interface ApiService {

    @GET(UrlConstainer.MAIN_BANNER)
    Call<BaseBean<List<BannerBean>>> main_banner();

    @GET(UrlConstainer.HOME_LIST)
    Call<BaseBean<PageListDataBean<ArticleBean>>> main_list(@Path("page") int page);
}
